#ifndef INCLUDED_REGISTRATION_H
#define INCLUDED_REGISTRATION_H

#include <iostream>
#include <string.h>

using namespace std;

enum REGISTRATION_STATUS{
    ERRGENERIC,
    USERNAME,
    MAIL,
    REGOK
};

enum LOGINUSER_STATUS{
    LOGIN_OK,
    LOGIN_KOGEN,
    LOGIN_KOUSER,
    LOGIN_KOPASS
};

class Account {
    private :
        void addNewCards(int user_id, int deck_id, int card_id[], int numCard);
    public :
        Account();
        ~Account();

        int registreNewAccount(std::string user, std::string pwd, std::string mail);
        int restore(int idUser);
        int login(std::string user, std::string pwd);
};


#endif
